#!/bin/sh
#
# Rony Yeung
#
# Find changed file(s)
# e.g.
# ./check_update.sh | grep differ
#

find . -path "./.hg" -prune -o -print -type f | while read FILE; do
    [ -f ${FILE} ] && {
        FILE2=`echo ${FILE} | sed 's/\/user\//\/father\//g'`
        diff -q  ${FILE} ${FILE2##.}
        # diff  ${FILE} ${FILE2##.}
    }
done
